<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>实体店管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    #parse('/headFiles.html')
</head>
<body>
<body>
 <div class="layui-form" style="padding: 20px 15px 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">所属网点</label>
	  <div class="layui-input-block">
          <select id="placeId" name="placeId" class="layui-hide" lay-ignore>
              <option value="$!{placeId}">$!{place.name}</option>
          </select>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">手机号</label>
      <div class="layui-input-block">
      	<input type="text" name="phone" class="layui-input" lay-verify="required"></input>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">描述信息</label>
      <div class="layui-input-block">
      	<input type="text" name="note" class="layui-input"></input>
      </div>
    </div>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="$!{i18n.get('ok')}">
    </div>
 </div>
#parse('/footFiles.html')
<script type="text/javascript">
  layui.config({
    base: '$!{webRoot}/assets/layuiadmin/'
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$,form = layui.form;
	
	$('#placeId').select2({
	    placeholder: "请选择所属网点",
	    width:'300px',
	    theme: 'bootstrap',
	    ajax: {
	      url: '$!{webRoot}/place/physical_store/select.data',
	      method: 'post',
	      delay: 250,
	      processResults: function (result) {
	        if (result.code == 200) {
	          return {
	            pagination: {more: result.body.more},
	            results: result.body.data || []
	          };
	        } else {
	          return {results: []};
	        }
	      }
	    }
	 });
  });
</script>
</body>
</body>
</html>